import request from "../utils/request.js";

export function getOpenId(data) {
  return request({
    url: "/api/wechat/getOpenId",
    method: "post",
    data,
  });
}

export function getUserInfo(data) {
  return request({
    url: "/api/wechat/userinfo",
    method: "get",
    data,
  });
}

export function updateUserInfo(data) {
  return request({
    url: "/api/wechat/userinfo/update",
    method: "post",
    data,
  });
}
